﻿using EntityFramework.Entity.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YouTravel.Framework.Enums;

namespace YouTravel.DomainModels
{
    /// <summary>
    /// 机构信息
    /// </summary>
    public class Branch : EntityBase
    {
        /// <summary>
        /// 机构名称（最大值50）
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 机构类型
        /// </summary>
		public BranchType Type { get; set; }
        /// <summary>
        /// 机构状态
        /// 1-正常 0-已冻结
        /// </summary>
        public bool Status { get; set; }
        /// <summary>
        /// 专线毛利率
        /// 范围0-100
        /// </summary>
        public decimal GrossMargin { get; set; }
        /// <summary>
        /// 扣款手续费率
        /// 范围0-100
        /// </summary>
        public decimal CounterFeeRate { get; set; }
        /// <summary>
        /// 允许欠款总额
        /// </summary>
        public decimal ArrearsTotal { get; set; }
        /// <summary>
        /// 允许欠票周期
        /// </summary>
        public int OweTicketsDay { get; set; }
        /// <summary>
        /// 创建人ID
        /// </summary>
        public int CreaterId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public virtual User Creater { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 更新人ID
        /// </summary>
        public int? UpdaterId { get; set; }
        /// <summary>
        /// 更新人
        /// </summary>
        public virtual User Updater { get; set; }
        /// <summary>
        /// 
        /// 更新人姓名
        /// </summary>
        public string UpdaterName { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

    }
}
